/*
Copyright (C) 2021-2025 Casa Xu (also Zhiyan Xu) from HIT

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
*/

/*
 * LOS_PWM.h
 *
 *  Created on: 2023年2月28日
 *      Author: 64435
 */

#ifndef HARDWARE_LAYER_INC_LOS_PWM_H_
#define HARDWARE_LAYER_INC_LOS_PWM_H_

//对应关系见OBC原理图以及HALCoGen
#define LOS_PWMX1 pwm0
#define LOS_PWMY1 pwm2
#define LOS_PWMZ1 pwm1
#define LOS_PWMX2 pwm4
#define LOS_PWMY2 pwm5
#define LOS_PWMZ2 pwm3

void LOS_PWM_Init();
void LOS_PWM_SetSignal(uint32_t LOS_PWMNUM, uint32_t in_duty, double in_period);
void pwmSetSignal_mod(hetRAMBASE_t * hetRAM, uint32 pwm, hetSIGNAL_t signal);


#endif /* HARDWARE_LAYER_INC_LOS_PWM_H_ */
